package com.fuxi;

public class OverloadTest {
	
	public static int max(int data[]) {
		int max = data[0];
		for(int i = 0; i< data.length; i++) {
			max = max >= data[i]?max:data[i];
		}
		return max;
	}
	public static long max(long data[]) {
		long max = data[0];
		for(int i = 0; i< data.length; i++) {
			max = max >= data[i]?max:data[i];
		}
		return max;
	}
	public static double max(double data[]) {
		double max = data[0];
		for(int i = 0; i< data.length; i++) {
			max = max >= data[i]?max:data[i];
		}
		return max;
	}
}
